import unittest
import time
from tpshop_unittest import TPShopLogin
from tpshop_unittest2 import TPShopLogin2
from tool.HTMLTestRunner import HTMLTestRunner

suite = unittest.TestSuite()

suite.addTest(unittest.makeSuite(TPShopLogin))
suite.addTest(unittest.makeSuite(TPShopLogin2))


report = f"./report/report{time.strftime('%Y%m%d-%H%M%S')}.html"

with open(report, "wb") as f:
    runner = HTMLTestRunner(f, title="tpshop测试报告")

    runner.run(suite)


